package cn.le.dao;

import cn.le.beans.dto.JobNameDTO;
import cn.le.beans.entity.JobInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface JobInfoDAO {

    public List<JobInfoPO> findJobInfo(@Param("jobNameList") List<JobNameDTO> jobNames);

    public List<JobInfoPO> findJobInfoByStatus(@Param("jobNameList") List<JobNameDTO> jobNames, @Param("status") Set<Integer> status);

    public Integer batchInsert(@Param("jobInfos") List<JobInfoPO> jobInfos);

    public Integer updateStatus(@Param("idSet") Set<Long> ids, @Param("status") Integer status);
}
